package com.think.teaching.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * <p>
 * 试卷分区
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public class PaperZone extends BaseModel<PaperZone> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 试卷id
     */
    private Integer paperId;

    /**
     * 序号
     */
    private Integer zoneIndex;

    /**
     * 分值权重
     */
    private Integer weight;

    /**
     * 题目类型
     */
    private Integer type;

   


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPaperId() {
        return paperId;
    }

    public void setPaperId(Integer paperId) {
        this.paperId = paperId;
    }

    public Integer getZoneIndex() {
        return zoneIndex;
    }

    public void setZoneIndex(Integer zoneIndex) {
        this.zoneIndex = zoneIndex;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

   
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PaperZone{" +
        "id=" + id +
        ", paperId=" + paperId +
        ", zoneIndex=" + zoneIndex +
        ", weight=" + weight +
        ", type=" + type +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", delflag=" + delflag +
        ", state=" + state +
        "}";
    }
}
